package operation;


import goods.Way;

public class purchase  {
    private Way way;
    private int amount;

    @Override
    public String toString() {
        return way.getName() + "购买数量为" + amount;
    }

    public purchase(Way way, int amount) {
        this.way = way;
        this.amount = amount;
    }

    public Way getWay() {
        return way;
    }

    public void setWay(Way way) {
        this.way = way;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }
}
